<template>
	<view>
	</view>
</template>

<script>
	import {
		mapState
	} from "vuex";
	export default {
		data() {
			return {}
		},
		onLoad() {
			uni.showLoading({
				title: '请稍候'
			})
		},
		computed: {
			...mapState(['indexType'])
		},
		watch: {
			indexType: {
				handler(value) {
					uni.hideLoading()
					if (value == '2') {
						uni.reLaunch({
							url: '/pages/index/index'
						})
					} else if (value == '1') {
						uni.reLaunch({
							url: '/pages/public/login'
						})
					}
				},
				immediate: true
			}
		},
		methods: {}
	}
</script>

<style>

</style>
